import BaseComponent from "../../../pages/BaseComponent";
import {Switch} from "@tarojs/components";
import "./index.less";


export default class Index extends BaseComponent{

  render() {

    const {mStyle, onChange, disabled, checked} = this.props;

    return <Switch type='true' color='#E8AF1B' disabled={disabled} checked={checked}
                   className='wx-switch-input' style={mStyle}
                   onChange={onChange}></Switch>
  }
}
